package com.xdjd.task.mapper.activity;

import com.xdjd.task.model.activity.ActivityClockDetailPo;
import net.oschina.durcframework.easymybatis.dao.CrudDao;
import org.apache.ibatis.annotations.Update;

public interface ActivityClockDetailPoDao extends CrudDao<ActivityClockDetailPo> {
    @Update("update activity_clock_detail set status=1,complete_status=1 where complete_status=0 and clock_date=CURDATE() and today_step_number>=target_step_number")
    int settleSuccessClockDetail();

    @Update("update activity_clock_detail set status=0,complete_status=1 where complete_status=0 and clock_date=CURDATE() and today_step_number<target_step_number")
    int settleFailureClockDetail();
}